package r21310.chap04.zoodemo;

public class Circle extends Shape{
    protected double pi=3.14;
    protected double a;

    public Circle() {

    }

    @Override
    public double getArea(double a) {
        return 0;
    }

    @Override
    public double getLength(double b) {
        return 0;
    }

    public void S2(double a) {
        s = a * a*pi;
    }

    public Circle(double s, double c, double pi, double a) {
        super(s, c);
        this.pi = pi;
        this.a = a;
    }

    public double getPi() {
        return pi;
    }

    public void setPi(double pi) {
        this.pi = pi;
    }

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public Circle(double pi, double a) {
        this.pi = pi;
        this.a = a;
    }

    public void C2(double a) {
        c=2*pi*a;

    }
    public void yuan(){
        System.out.println("我的面积为"+s+"我的周长为"+c);
    }

}
